import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/ManageEvaluated/GetClassStudentList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
export const remove = (params) => {
  return request({
    url: '/api/ManageTenant/DelTenant',
    method: 'post',
    data:params
    // params: {
    //   ids,
    // }
  })
}

export const add = (row) => {
  return request({
    // url: '/api/blade-system/tenant/submit',
    url: '/api/ManageTenant/AddOrEditTenant',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    // url: '/api/blade-system/tenant/submit',
    url: '/api/ManageTenant/AddOrEditTenant',
    method: 'post',
    data: row
  })
}
// 是否可评价
export const getIsEvaluatedByTeacher = (params) => {
  return request({
    url: '/api/ManageEvaluated/GetIsEvaluatedByTeacher',
    method: 'get',
    params: params
  })
}
//评价学生
export const addEvaluate = (row) => {
  return request({
    // url: '/api/blade-system/tenant/submit',
    url: '/api/ManageEvaluated/AddEvaluate',
    method: 'post',
    data: row
  })
}
//获取评价历史
export const getHistoryEvaluate = (params) => {
  return request({
    url: '/api/ManageEvaluated/GetHistoryEvaluate',
    method: 'get',
    params: params
  })
}
// export const info = (domain) => {
//   return request({
//     url: '/c_api/blade-system/tenant/info',
//     method: 'get',
//     params: {
//       domain
//     }
//   })
// }
